import { RoomQuery, RoomStatus } from './graphql'

type RPlayer = RoomQuery['room']['players'][0]
type RPuzzle = RoomQuery['room']['puzzle']
type RSetting = RoomQuery['room']['setting']

export interface RoomData {
  id: string
  me: RPlayer
  host: RPlayer
  playersMap: Map<string, RPlayer>
  players: RoomQuery['room']['players']
  setting: RSetting
  puzzle: RPuzzle
  status: RoomStatus
}
